<template>
    <div id="user">


      <el-table
        :data="tableData3"
        style="width: 100%"
        height="250">
        <el-table-column
          fixed
          prop="date"
          label="日期"
          width="150">
        </el-table-column>
        <el-table-column
          prop="name"
          label="姓名"
          width="120">
        </el-table-column>
        <el-table-column
          prop="province"
          label="省份"
          width="120">
        </el-table-column>
        <el-table-column
          prop="city"
          label="市区"
          width="120">
        </el-table-column>
        <el-table-column
          prop="address"
          label="地址"
          width="300">
        </el-table-column>
        <el-table-column
          prop="zip"
          label="邮编"
          width="120">
        </el-table-column>
      </el-table>


      这是用户列表
      <a href="javascript:void(0);" @click="submit">点击事件</a>
    </div>
</template>

<script>
import axios from '@/common/js/axios'
export default {
  name: 'User',
  data(){
    return {
      tableData3: [{
        date: '2016-05-03',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-02',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-04',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-01',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-08',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-06',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-07',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }]
    }
  },
  methods:{
    submit(){
      let param = '[{"id":"1060352181837881346","suiEnrolId":"1007467695719022593","studentName":"翟建超","phone":"13165966721","univDepartment":"北京外国语学院","univMajor":"计算机科学与技术信息","schoolYear":"2016","schoolClass":"28","jobs":"团员"},{"id":"1060352182190202882","suiEnrolId":"1007467695719022593","studentName":"翟建超","phone":"13165966722","univDepartment":"北京外国语学院","univMajor":"计算机科学与技术信息","schoolYear":"2016","schoolClass":"28","jobs":"团员"},{"id":"1060352182487998466","suiEnrolId":"1007467695719022593","studentName":"翟建超","phone":"13165966723","univDepartment":"北京外国语学院","univMajor":"计算机科学与技术信息","schoolYear":"2016","schoolClass":"28","jobs":"团员"},{"suiEnrolId":"1007467695719022593","studentName":"翟建超","phone":"13165966720","univDepartment":"北京外国语学院","univMajor":"计算机科学与技术信息","schoolYear":"2016","schoolClass":"28","jobs":"团员"},{"suiEnrolId":"1007467695719022593","studentName":"翟建超","phone":"13165966720","univDepartment":"北京外国语学院","univMajor":"计算机科学与技术信息","schoolYear":"2016","schoolClass":"28","jobs":"团员"},{"suiEnrolId":"1007467695719022593","studentName":"翟建超","phone":"13165966720","univDepartment":"北京外国语学院","univMajor":"计算机科学与技术信息","schoolYear":"2016","schoolClass":"28","jobs":"团员"}]'
      axios({
        method: 'post',
        url: 'http://localhost:8991/sys/findPermission',
      }).then(function(response) {
        console.log(response.data);
        console.log(response.status);
        console.log(response.statusText);
        console.log(response.headers);
        console.log(response.config);
      });
    }
  }

}
</script>

<style scoped>

</style>
